package net.mingsoft.config;

import net.mingsoft.report_data.config.ReportDetailProperty;
import net.mingsoft.zwy.config.properties.EmailProperty;
import net.mingsoft.zwy.config.properties.MessageProperty;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @author gengfa
 * @date 2022/03/05
 */
@Configuration
public class PropertiesConfig {

    @Bean
    @ConfigurationProperties(prefix = "zwy.sms")
    public MessageProperty messageProperty() {
        return new MessageProperty();
    }

    @Bean
    @ConfigurationProperties(prefix = "zwy.email")
    public EmailProperty emailProperty() {
        return new EmailProperty();
    }

    @Bean
    @ConfigurationProperties(prefix = "report.content")
    public ReportDetailProperty reportDetailProperty() {
        return new ReportDetailProperty();
    }
}
